package com.resataurant.Service.Impl;

import com.resataurant.Dao.SaleDataDao;

import java.util.Map;

public class SaleDataServiceImpl implements  com.resataurant.Service.SaleDataService{
    @Override
    public Map<String, Integer> getSaleData() {
        return new SaleDataDao().getSaleData();
    }

    @Override
    public Map<String, Integer> getSaleDataByDate(String start, String end) {
        return new SaleDataDao().getSaleDataByDate(start,end);
    }

    public Map<String, Integer> getSalePopular() {
        return new SaleDataDao().getSalePopular();
    }

    public Map<String, Integer> getSaleUser(String id) {
        return new SaleDataDao().getSaleUser(id);
    }
}
